#include "process.h"

void Progress()
{
    int cnt = 0;
    char bar[NUM];
    const char *lable = "|\\-/";
    memset(bar, '\0', sizeof(bar));

    while(cnt <= 100)
    {
        printf("[%-100s][%d%%][%c]\r", bar, cnt, lable[cnt%4]);
        fflush(stdout);
        bar[cnt++] = STYLE;
        //sleep(1);
        usleep(50000); // 5/100*100w
    }
    printf("\n");
}
